package com.laowang;

import com.laowang.common.utils.StringUtils;
import com.sun.scenario.effect.impl.sw.sse.SSEBlend_SRC_OUTPeer;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Objects;

/**
 * @Auther laowang
 * @Date 2023/6/21
 * @Description
 */
public class TRest07 {
    public static void main(String[] args) {
        BigDecimal aa = new BigDecimal(2);
        BigDecimal a = new BigDecimal(0);
        System.out.println(aa.compareTo(a));

        /*String s = "我的电脑";
        String name = StringUtils.left(s, 1);
        String s1 = StringUtils.rightPad(name, StringUtils.length(s), "*");
        System.out.println(s1);
        System.out.println(name);*/

//        BigDecimal aa = new BigDecimal(169.69);
//        BigDecimal aa1 = new BigDecimal(100);
//        //System.out.println(aa1.compareTo(aa));
//        //System.out.println(aa.multiply(aa1));
//        System.out.println(aa.divide(aa1).setScale(2,BigDecimal.ROUND_FLOOR));
//
//        BigDecimal b = new BigDecimal("0.36");
//        System.out.println(b.intValue());
        /*List<Integer> list =new ArrayList(8);
        list.add(1);
        list.add(2);
        list.add(1);
        list.add(3);
        Object[] objects = list.toArray();
        Object[] objects1 = Arrays.copyOf(objects, 8);
        System.out.println(objects1.length);*/

       /* String s = new String("1");
        String s1 = new String("1");
        System.out.println(s.equals(s1));*/

    }
}
